#include<stdio.h>
int main()
{
	float F;
	double c;
	scanf("%f",&F);
	c = 5*(F-32)/9;
	printf("%.2f",c); 
	return 0;
}
